<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=
    , initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var func1 = function(num) {

            if ((num % 2 == 0) || (num % 3 == 0) || (num % 5 == 0)) {
                console.log("true")
            }
            console.log("false");
        }

        var func2 = function(n) {
            if (n <= 0) {
                return false;
            }
            var num = Math.log10(n) / Math.log10(3);
            if (num % 1 == 0) {
                return true;
            } else {
                return false;
            }
        };


        var func3 = function(x) {
            var s = [];
            var r = '';
            if (x > 0) {
                s.push(x % 8);
                x = parseInt(x / 8);
            }
            if (s.length > 0) {
                r = r + s.pop();
            }
            return r;
        }



        var func4 = function(arr) {
            var result = 1;

            var arr1 = [];

            for (var i = 0; i < arr.length; i++) {
                result = result * arr[i];

            }

            for (var i = 0; i < arr.length; i++) {
                arr1[i] = result / arr[i];

            }


            return arr1;
        }
    </script>
</body>

</html>